package com.lzy.product.apis;

import com.lzy.product.dtos.agent.AgentProtocolImageTextDto;

import java.util.List;

/**
 * 代理商协议图文详情
 * Created by WIN7 on 2018/04/14.
 */
public interface AgentProtocolImageTextServiceApi extends BaseServiceApi<AgentProtocolImageTextDto> {
    /**
     * 根据id查询详情
     *
     * @param protocolId
     * @return
     */
    List<AgentProtocolImageTextDto> selectByProtocolId(Long protocolId);

    /**
     * 物理删除图文详情数据
     *
     * @param protocolId
     * @return
     */
    Boolean deleteByProtocolId(Long protocolId);

    /**
     * 根据id和类型查询详情
     *
     * @param protocolId,type
     * @return
     */
    List<AgentProtocolImageTextDto> selectByProtocolIdAndType(Long protocolId, Integer type);
}
